﻿#region Using declarations
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    partial class Strategy
    {
        ///Returns the month (MM) portion of the specified calendar date, from 1 to 12.
        ///Syntax: Month(cDate);
        ///cDate: numeric expression for the date in YYMMDD or YYYMMDD format.
        public int Month(int cDate)
        {
            return (int)Floor((cDate - (Floor(cDate / 10000.00) * 10000.00)) / 100.00);
        }

    }
}
